package com.study.other;

import com.alibaba.druid.filter.config.ConfigTools;
import com.alibaba.druid.util.DruidPasswordCallback;

/**
 * @Author tanglingyu
 * @Date: 2021/06/01/ 16:39
 * @Description
 */
public class DruidPassword extends DruidPasswordCallback {

  public static void main(String[] args) throws Exception {
    String publickey = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIt2zEa4S6aizUdpMv9CKUnOqsgKi78PV4M9rYmWcQFSvCrTXUfVAQ+aNNjKojmrPKi3oS/5lNdqL9YrJK621I8CAwEAAQ==";
    String password = "NJ5zDruwBxI81gQUxnaE8i3EQdqdr7dCe/4lkdEdEzwBRK4zCOFRh8P1L7UgpcK1apiI2OerCZfYCHyBT3iPiA==";
    String pwd = ConfigTools.decrypt(publickey, password);
    System.out.println(pwd);
  }
}
